<template>
  <div v-if="config">
    <el-form-item label="最小数量">
      <el-input-number v-model="config.props.min" style="width: 100%" value-on-clear="min" controls-position="right"
        :min="1" :max="10" />
    </el-form-item>
    <el-form-item label="最大数量">
      <el-input-number v-model="config.props.max" style="width: 100%" value-on-clear="max" controls-position="right"
        :min="1" :max="10" />
    </el-form-item>
    <el-form-item label="文件大小(MB)">
      <el-input-number v-model="config.props.maxSize" style="width: 100%" controls-position="right" :min="0.01"
        value-on-clear="max" :max="10" />
    </el-form-item>
  </div>
</template>

<script setup lang="ts">
import { computed, defineExpose } from "vue";
import { getCurrentConfig } from "../../../utils/objutil";

let props = defineProps({
  id: {
    type: String,
    default: "",
  },
});

var config = computed(() => {
  return getCurrentConfig(props.id);
});
</script>

<style scoped lang="less"></style>